package com.ruoyi.project.wechatprogram.menu.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 菜单列对象 wx_menu
 * 
 * @author csx
 * @date 2020-03-27
 */
public class WxMenu extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    // 餐品上架
    public static final int MENU_STATUS_UP = 1;

    // 餐品下架
    public static final int MENU_STATUS_DOWN = 2;

    /** 主键 */
    private Integer id;

    /** 菜单名称 */
    @Excel(name = "菜单名称")
    private String menuName;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String menuPictureUrl;

    /** 描述 */
    @Excel(name = "描述")
    private String menuDescription;

    /** 商品状态,0正常1下架 */
    @Excel(name = "商品状态,0正常1下架")
    private Integer menuStatus;

    /** 类目表id */
    @Excel(name = "类目表id")
    private Integer categoryId;

    /** 站点id */
    @Excel(name = "站点id")
    private Integer webId;

    /** 删除状态 */
    @Excel(name = "删除状态")
    private Integer del;

    /** 预留字段1 */
    @Excel(name = "预留字段1")
    private String back1;

    /** 预留字段2 */
    @Excel(name = "预留字段2")
    private String back2;

    /** 预留字段3 */
    @Excel(name = "预留字段3")
    private String back3;

    /** 预留字段4 */
    @Excel(name = "预留字段4")
    private String back4;

    /** 菜单是否选中，映射 */
    private boolean flag;

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setMenuName(String menuName)
    {
        this.menuName = menuName;
    }

    public String getMenuName() 
    {
        return menuName;
    }
    public void setMenuPictureUrl(String menuPictureUrl) 
    {
        this.menuPictureUrl = menuPictureUrl;
    }

    public String getMenuPictureUrl() 
    {
        return menuPictureUrl;
    }
    public void setMenuDescription(String menuDescription) 
    {
        this.menuDescription = menuDescription;
    }

    public String getMenuDescription() 
    {
        return menuDescription;
    }
    public void setMenuStatus(Integer menuStatus) 
    {
        this.menuStatus = menuStatus;
    }

    public Integer getMenuStatus() 
    {
        return menuStatus;
    }
    public void setCategoryId(Integer categoryId)
    {
        this.categoryId = categoryId;
    }

    public Integer getCategoryId()
    {
        return categoryId;
    }
    public void setWebId(Integer webId)
    {
        this.webId = webId;
    }

    public Integer getWebId()
    {
        return webId;
    }
    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }
    public void setBack1(String back1) 
    {
        this.back1 = back1;
    }

    public String getBack1() 
    {
        return back1;
    }
    public void setBack2(String back2) 
    {
        this.back2 = back2;
    }

    public String getBack2() 
    {
        return back2;
    }
    public void setBack3(String back3) 
    {
        this.back3 = back3;
    }

    public String getBack3() 
    {
        return back3;
    }
    public void setBack4(String back4) 
    {
        this.back4 = back4;
    }

    public String getBack4() 
    {
        return back4;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("menuName", getMenuName())
            .append("menuPictureUrl", getMenuPictureUrl())
            .append("menuDescription", getMenuDescription())
            .append("menuStatus", getMenuStatus())
            .append("categoryId", getCategoryId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("webId", getWebId())
            .append("del", getDel())
            .append("back1", getBack1())
            .append("back2", getBack2())
            .append("back3", getBack3())
            .append("back4", getBack4())
            .toString();
    }
}
